const http = uni.$u.http



// export const flush=(data)=>http.post('/uni/aa',data);

export const login=(data)=>http.post('/uni/login',data);

export const updateName=(data)=>http.post('/uni/updateName',data);
export const updateSex=(data)=>http.post('/uni/updateSex',data);
export const updateEmail=(data)=>http.post('/uni/updateEmail',data);
export const updateTel=(data)=>http.post('/uni/updateTel',data);

export const getUserInfo=(data={})=>http.get('/uni/userInfo',data);

export const getTypeList=(data={})=>http.get('/uni/typeList',data);

export const subOrder=(data)=>http.post('/uni/order',data);

export const pay=(data)=>http.post('/uni/pay',data);

export const cancelOrder=(data)=>http.delete('/uni/order',data);

export const getOrderDetail=(data)=>http.post('/uni/orderDetail',data);

export const getOrder=(data)=>http.get('/uni/order/'+data)

export const updateCover=(data)=>http.put('/uni/cover',data)